
<!doctype html>

<html class="no-js fixed-layout">


<head>

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>管理系统</title>

    <meta name="description" content="这是一个 index 页面">

    <meta name="keywords" content="index">

    <meta name="renderer" content="webkit">

    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=0.3, maximum-scale=1.0,
    minimum-scale=0.3">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/css/amazeui.min.css"/>

    <link rel="stylesheet" href="/css/admin.css">

    <script src="/js/handlebars.min.js"></script>

    <script src="/js/amazeui.widgets.helper.js"></script>

    <script src="/js/amazeui.ie8polyfill.min.js"></script>

    <script src="/js/jquery.min.js"></script>

    <script src="/js/echarts.js"></script>

    <script src="/js/clipboard.1.5.15.min.js"></script>
    <!-- <script src="/static/js/highcharts.js"></script> -->

    <script src="/js/amazeui.min.js"></script>

    <script src="/js/app.js"></script>

    <link rel="stylesheet" href="/jedate.css?v=1.0.0">
    <script src="//jedate.js"></script>

    <link rel="stylesheet" href="/css/model.css">
    <link rel="stylesheet" href="/css/dio.css">
    <meta charset="utf-8">

    </body>

</head>
<body>

<!--[if lte IE 9]>

<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>

    以获得更好的体验！</p>

<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header" style="background: #F37B1D;    border-color: #F37B1D;">

    <div class="am-topbar-brand">

        <strong>APP</strong>
        <small>后台管理系统</small>

    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
            data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span
                class="am-icon-bars"></span></button>


    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">

            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span
                            class="admin-fullText">liutao，欢迎您 </span></a></li>

            <li class="am-dropdown" data-am-dropdown>

                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">

                    <span class="am-icon-users"></span> 刘涛 <span
                            class="am-icon-caret-down"></span>

                </a>

                <ul class="am-dropdown-content">

                    <!--<li><a href="#"><span class="am-icon-user"></span> 资料</a></li>-->

                    <li><a href="/member/edit?mid=459"><span class="am-icon-cog"></span> 修改密码</a></li>

                    <li><a href="/login/quit"><span class="am-icon-power-off"></span> 退出</a></li>

                </ul>

            </li>

            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span
                            class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>

        </ul>

    </div>

</header>


<div class="am-modal am-modal-no-btn" tabindex="-1" id="Jump_prompt-1">

    <div class="am-modal-dialog">

        <div class="Jump_prompt">

            操作失败

        </div>

    </div>

</div>
<div class="am-cf admin-main">
    <!-- sidebar start -->
    <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
        <div class="am-offcanvas-bar admin-offcanvas-bar">
            <ul class="am-list admin-sidebar-list">
                                                                                <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav0'}"><span
                                        class=" am-icon-sm"></span> 用户管理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav0">

                                
                                    <li><a href="/realUser/userList"><span
                                                    class=" "></span> 用户列表 </a>
                                    </li>
                                
                                    <li><a href="/user/applyFreeCodeList"><span
                                                    class=" "></span> 邀请码 </a>
                                    </li>
                                
                                    <li><a href="/order/orderList"><span
                                                    class=" "></span> 消费记录	 </a>
                                    </li>
                                
                                    <li><a href="/userScore/list"><span
                                                    class=" "></span> 权重排序	 </a>
                                    </li>
                                
                                    <li><a href="/UserGoddess/getLists"><span
                                                    class=" "></span> 女神认证 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav1'}"><span
                                        class=" am-icon-sm"></span> 合规监管 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav1">

                                
                                    <li><a href="/realUser/photoList"><span
                                                    class=" "></span> 相册图片审核 </a>
                                    </li>
                                
                                    <li><a href="/realUser/userVerifyPhotoList"><span
                                                    class=" "></span> 真人认证审核 </a>
                                    </li>
                                
                                    <li><a href="/userAvatar/getList"><span
                                                    class=" "></span> 用户头像审核 </a>
                                    </li>
                                
                                    <li><a href="/userNickname/getList"><span
                                                    class=" "></span> 用户昵称审核 </a>
                                    </li>
                                
                                    <li><a href="/userSignature/getList"><span
                                                    class=" "></span> 用户签名审核 </a>
                                    </li>
                                
                                    <li><a href="/userBackgroundImage/getList"><span
                                                    class=" "></span> 背景图片审核 </a>
                                    </li>
                                
                                    <li><a href="/UserSocialAccountsAudit/getList"><span
                                                    class=" "></span> 社交账号审核 </a>
                                    </li>
                                
                                    <li><a href="/UserVoiceAudit/getList"><span
                                                    class=" "></span> 用户语音审核 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav2'}"><span
                                        class=" am-icon-sm"></span> 投诉处理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav2">

                                
                                    <li><a href="/user/reportManageList"><span
                                                    class=" "></span> 匿名投诉处理 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav3'}"><span
                                        class=" am-icon-sm"></span> 聊天管理 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav3">

                                
                                    <li><a href="/chat/chatHistory"><span
                                                    class=" "></span> 聊天历史 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav4'}"><span
                                        class=" am-icon-sm"></span> 社区审核 <span
                                        class="am-icon-star admin-icon-yellow am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub am-in"
                                id="collapse-nav4">

                                
                                    <li><a href="/plaza/showList"><span
                                                    class=" "></span> 动态审核                                             <span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span></a></a>
                                    </li>
                                
                                    <li><a href="/plaza/commentList"><span
                                                    class=" "></span> 评论审核 </a>
                                    </li>
                                                            </ul>
                        </li>
                                                                                                    <li class="admin-parent">
                            <a class="am-cf "
                               data-am-collapse="{target:'#collapse-nav5'}"><span
                                        class=" am-icon-sm"></span> 分享有奖 <span
                                        class="am-icon-angle-right am-fr am-margin-right"></span></a>

                            <ul class="am-list am-collapse admin-sidebar-sub "
                                id="collapse-nav5">

                                
                                    <li><a href="/share/shareList"><span
                                                    class=" "></span> 邀请列表 </a>
                                    </li>
                                
                                    <li><a href="/share/applyList"><span
                                                    class=" "></span> 申请列表 </a>
                                    </li>
                                                            </ul>
                        </li>
                                    
            </ul>

            <div class="am-panel am-panel-default admin-sidebar-panel">

                <div class="am-panel-bd">

                    <p><span class="am-icon-bookmark"></span></p>

                    <p><span style="size:12px;">将相本无主，男儿当自强！</span></p>

                </div>

            </div>


        </div>

    </div>


    <!-- sidebar end --><!-- content start -->
<style type="text/css">
    .tab {
        height: 60px;
        line-height: 60px;
    }

    .tab .tab-item {
        list-style: none;
        display: inline-block;
        width: 100px;
        text-align: center;
        font-size: 20px;
    }

    .tab .tab-item.active {
        color: #3F86FF;
        border-bottom: 3px solid #0000FF;
    }

    .dioConfirm {
        text-align: right;
        padding: 10px 20px 20px;
    }

    .dioConfirm button {
        cursor: pointer;
        background: #fff;
        border: 1px solid #dcdfe6;
        color: #606266;
        -webkit-appearance: none;
        text-align: center;
        box-sizing: border-box;
        outline: none;
        margin: 0;
        transition: .1s;
        font-weight: 500;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 4px;
    }

    #dioConBtn {
        color: #fff;
        background-color: #409eff;
        border-color: #409eff;
        margin-left: 10px;
    }
</style>
<meta charset="utf-8">

<div class="admin-content">

    <div class="admin-content-body">

        <div class="am-cf am-padding am-padding-bottom-0">

            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">社区管理</strong>
                <small></small>
            </div>

        </div>

        <hr/>

        <div class="am-g">
            <form action="" method="get" id="search-from">
                <div class=" am-u-md-12">
                    <div class=" am-u-md-3" style="width:560px;">
                        <span class="datetxt">开始日期：</span><input name="start_time" type="text" value="" autocomplete="off"  class="dateinput dateicon" id="inpstart" >
                        <span class="datetxt">结束日期：</span><input name="end_time" type="text" value="" autocomplete="off" class="dateinput dateicon" id="inpend" >
                    </div>
                    <input type="text" placeholder="昵称/约会内容"
                           name="keyword"
                           value="宝安区固戌">
                    <input type="text" placeholder="渠道id"  name="channel_id" value="">
                    <input type="text" placeholder="动态id"  name="plaza_id" value="">
                    <input type="text" placeholder="uid"     name="uid" value="">
                    <select name="audit_status">
                        <option  value="-1">审核状态(全部)1/0</option>
                        <option selected="selected" value="0">待审核
                        </option>
                        <option  value="1">已审
                        </option>
                    </select>
                    <select name="need_pay">
                        <option value="-1">是否需要付费</option>
                        <option  value="0">不需要</option>
                        <option  value="1">需要</option>
                    </select>
                    <select name="pay_status">
                        <option value="-1">支付状态</option>
                        <option  value="0">未支付</option>
                        <option  value="1">已支付</option>
                    </select>
                    <select name="meet_status">
                        <option value="-1">当前状态</option>
                        <option  value="0">在线</option>
                        <option  value="1">已结束</option>
                    </select>
                    <select name="status">
                        <option value="-1">所有状态</option>
                        <option  value="0">隐藏</option>
                        <option  value="1">显示</option>
                        <option  value="3">用户删除</option>
                        <option  value="4">后台删除</option>
                    </select>
                    <select name="gender">
                        <option value="-1">所有性别</option>
                        <option  value="0">男</option>
                        <option  value="1">女</option>
                    </select>
                    <select name="ptype">
                        <option value="-1">广播类型</option>
                        <option  value="0">动态</option>
                        <option  value="1">约会</option>
                    </select>
                    
                    <button style="width:160px;" class="am-btn am-btn-default search" type="submit">搜索</button>
                    <button class="am-btn am-btn-default" type="button" id="batch" value="1">批量审核</button>
                </div>
            </form>
        </div>

    <br/>

    <div class="am-g">

        <div class="am-u-sm-12">

            <form class="am-form">

                <table class="am-table am-table-striped am-table-hover table-main">

                    <thead>

                    <tr>
                        <th class="table-title">复选</th>
                        <th class="table-title">ID</th>
                        <th class="table-title">昵称</th>
                        <th class="table-title">渠道</th>
                        <th class="table-title">appid</th>
                        <th class="table-title">性别</th>
                        <th class="table-title">发布日期</th>
<!--                        <th class="table-title">广播主题</th>-->
                        <th class="table-title">地点</th>
                        <!-- <th class="table-title">约会日期</th> -->
<!--                        <th class="table-title">约会时间/时间段</th>-->
                        <th class="table-title" style="width: 10%">补充说明</th>
                        <th class="table-title">配图</th>
                        <th class="table-title">点赞数</th>
                        <th class="table-title">评论数</th>
<!--                        <th class="table-title">报名人数</th>-->
<!--                        <th class="table-title">报名状态</th>-->
                        <th class="table-title">评论状态</th>
                        <th class="table-title">隐藏同性</th>
                        <th class="table-title">显示状态</th>
                        <th class="table-title">付费发布</th>
                        <th class="table-title">支付状态</th>
                        <th class="table-title">当前状态</th>
                        <th class="table-title">审核状态</th>
                        <th class="table-title">操作日志</th>
                        <th class="table-title">操作</th>
                        <th class="table-title">状态</th>
                    </tr>

                    </thead>

                    <tbody>

                    
                        <tr>
                            <td><input type="checkbox" checked="checked" value="204730" name="ids" /></td>
                            <td>204730</td>
                            <td><a href="/realUser/getUserInfo?uid=253914140">丽莎莎</a></td>
                            <td>huawei</td>
                            <td>隐隐</td>

                            <td>女</td>
                            <td class="am-text-warning">2021-08-01 17:32:35</td>
                            <td>深圳市</td>
                            <td style="word-wrap:break-word">宝安区固戌</td>
                            <td>
                                                                <a href="javascript:;" onmouseover='bigImg(this)' class="view_img_list" img-list-url="meet/D/E4/DE41FBAF-6AB2-303F-8593-BFECDE471B71.jpg" img-oss-url=https://city-yueke.oss-cn-shenzhen.aliyuncs.com/ img-base-url=admin.ttwlxx.com img-plaza-id="204730"  plaza-id="204730" >点击查看</a>
                                                            </td>
                            <td>0</td>
                            <td>0 <a href="/plaza/showComment?plazaId=204730"><span>点击查看</span></a></td>
                            <td>禁止</td>
                            <td>隐藏</td>
                            <td>显示</td>
                            <td>不需要</td>
                            <td>不需支付</td>
                            <td>已结束                                </td>
<!--                            <td>--><!--</td>-->
<!--                            <td>--><!--</td>-->
<!--                            <td>--><!--</td>-->
<!--                            <td>--><!--</td>-->
                            <td>
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                        <div style='color:#0e90d2;cursor:pointer;' plazaId=204730 audit_status=1 onclick='auditPlaza(this)' ><span>未审核</span></div>                                    </div>
                                </div>
                            </td>
                            <td><a href="javascript:;"  onclick="showAuditList(this)" show_id="204730" show_type='5'>查看</a></td>
                            <td>
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                                                                    <span onclick="showEdit(this)" herf="plaza/showEdit" plazaId="204730" status="0" style="color: #0e90d2;">隐藏</span>
                                            <span onclick="showEdit(this)" herf="plaza/showEdit" plazaId="204730" status="4" style="color: #0e90d2;">删除</span>
                                                                                <button onclick="inDio(this)" type="button" uid="253914140">禁用</button>
                                    </div>
                                </div>
                            </td>
                            <td>显示</td>
                        </tr>

                    
                    </tbody>

                </table>

                <div class="am-cf">

                    共 1 条记录

                    <div class="am-fr">

                        
                    </div>

                </div>

            </form>

        </div>

    </div>

</div>
</div>
<script type="text/javascript">
    jeDate("#inpstart",{
        isinitVal:false,
        festival: true,
        format: 'YYYY-MM-DD hh:mm:ss'
    });
    jeDate("#inpend",{
        isinitVal:false,
        festival: true,
        format: 'YYYY-MM-DD hh:mm:ss'
    });

</script>

<!-- 查看配图 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="view-report-img"  >
        <div class="am-modal-dialog" style="width: 800px;" >
            <div class="am-modal-hd">查看配图
            <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd" id="modal-img-list"   index="999" onmouseleave='mouseOut(this)'>
                <figure data-am-widget="figure" class="am am-figure am-figure-default" id="img-list">
                    <!-- <img src="http://amazeui.shopxo.net/static/images/007.jpg" alt="举报截图照片"/> -->
                </figure>
                <input type='button' class='am-btn am-btn-secondary btn-loading-example' value='设置为敏感图片' data-am-loading="{loadingText: '正在设置中...'}" />
            </div>
        </div>
</div>



<script type="text/javascript">
     function bigImg(obj){
        var photo_url    = $(obj).attr('img-list-url');
        var img_oss_url  = $(obj).attr('img-oss-url');
        var img_plaza_id = $(obj).attr('img-plaza-id');
        var img_base_url = $(obj).attr('img-base-url');
        
        if (photo_url == '') {
            $("#img-list").html('');
            $('#view-report-img').modal('open');
            $("#img-list").append("<span>暂无数据</span>");
        }else{
            photo_url_arr = photo_url.split(",");// 在每个逗号(,)处进行分解。
            $("#img-list").html('');
            $('#view-report-img').modal('open');
            $.each(photo_url_arr,function (i,item) {
                j = i+1;
                if(item.indexOf("public/img_shield@3x.png") < 0 ) { // 敏感图片过滤掉
                    $("#img-list").append("<div class='am-btn-group'><label><img src="+ img_oss_url +"/"+ item +" width=250px height=280px/></label><label class='am-checkbox' style='margin-left:120px;'><input type='checkbox' name='plaza_images[]' value="+ i +"> </label></div>");
                }
            });
            $("#img-list").append("<input type='hidden' name='img_plaza_id' value="+ img_plaza_id +"> ");
        }
    }

    function mouseOut(theEvent){
        $('.am-close').trigger("click");
        $(".am-pureview ul:first li").remove(); // 每次关闭模态窗口都要清除img图片
    }

    

    $('.view_img_list').click(function(){
        var photo_url    = $(this).attr('img-list-url');
        var img_oss_url  = $(this).attr('img-oss-url');
        var img_plaza_id = $(this).attr('img-plaza-id');
        var img_base_url = $(this).attr('img-base-url');
        
        if (photo_url == '') {
            $("#img-list").html('');
            $('#view-report-img').modal('open');
            $("#img-list").append("<span>暂无数据</span>");
        }else{
            photo_url_arr = photo_url.split(",");// 在每个逗号(,)处进行分解。
            $("#img-list").html('');
            $('#view-report-img').modal('open');
            $.each(photo_url_arr,function (i,item) {
                j = i+1;
                if(item.indexOf("public/img_shield@3x.png") < 0 ) { // 敏感图片过滤掉
                    $("#img-list").append("<div class='am-btn-group'><label><img src="+ img_oss_url +"/"+ item +" width=250px height=280px/></label><label class='am-checkbox' style='margin-left:120px;'><input type='checkbox' name='plaza_images[]' value="+ i +"> </label></div>");
                }
            });
            $("#img-list").append("<input type='hidden' name='img_plaza_id' value="+ img_plaza_id +"> ");
        }
        
    });

    $('#view-report-img').on('closed.modal.amui', function(){
        $(".am-pureview ul:first li").remove(); // 每次关闭模态窗口都要清除img图片
    });

    $('.btn-loading-example').click(function () {
        var plaza_id = $("input[name='img_plaza_id']").val();
        var $btn = $(this)
        $btn.button('loading');
        if ($('input[name="plaza_images[]"]:checked').length == 0) {
            $('#view-report-img').modal('close');
            location.reload();
        } else {
            var str = "";
            $("input[name='plaza_images[]']:checked").each(function (index, item) {
                if ($("input[name='plaza_images[]']:checked").length-1==index) {
                    str += $(item).val();
                } else {
                    str += $(item).val() + ",";
                }
            });
            console.log(str);

            data = new Object();
            data.plazaId = plaza_id;
            data.images_id = str;

            var href = "/plaza/setSensitiveImg";
            $.ajax({
                type: 'POST',
                url: href,
                data: data,
                dataType: "json",
                success:function(data){
                    alert(data.msg);
                    setTimeout(function(){
                        $('#view-report-img').modal('close');
                        location.reload();
                    },1500);
                },
            });
        }
        
    });



    $('.search').click(function (e) {
        e.preventDefault();
        var data = $("#search-from").serialize();
        window.location.href = "/plaza/showList?" + data;
    });

</script>


<!-- 查看审核历史 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="showList-model">
    <div class="am-modal-dialog" style="width: 1200px;">
        <div class="am-modal-hd"> 审核历史
        <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd" id="modal-img-list">
            <table class="am-table am-table-striped am-table-hover table-main">
                <thead>
                    <tr>
                        <th class="table-title">模块名称</th>
                        <th class="table-title">id</th>
                        <th class="table-title">操作</th>
                        <th class="table-title">操作人</th>
                        <th class="table-title">操作时间</th>
                    </tr>
                </thead>
                <tbody class="user-forbidden-list">
                </tbody>
            </table>
        </div>
        <div class="dioConfirm">
            <button onclick="outShowList()" type="button">取消</button>
        </div>
        <input type="hidden" name="showlist_id" id="showlist_id" />
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $(".tab .tab-item").click(function () {
            $(this).addClass("active").siblings().removeClass("active");
        })
    })

    function showAuditList(obj) {
        id = $(obj).attr("show_id");
        $('#showlist_id').val(id);

        data = new Object();
        data.id = $("#showlist_id").val();
        data.type = $(obj).attr("show_type");
        console.log(data);


        var url = "/auditLog/list";
        $.ajax({
            type: 'POST',
            url: url,
            data: data,
            dataType: "json",
            //在请求之前调用的函数
            beforeSend:function(){
                // console.log(1);
            },
            //成功返回之后调用的函数
            success:function(data){

                if (data.error) {
                    alert(data.msg);
                }else{
                    console.log(data.data);
                    $(".user-forbidden-list").html('');
                    html = '';
                    $.each(data.data,function (i,item) {
                        html += '<tr>';
                        html += '<th>' + item.type_name + '</th>';
                        html += '<th>' + item.record_id + '</th>';
                        if (item.record_status == 1) {
                            html += '<th>' + '通过' + '</th>';
                        }else{
                            html += '<th>' + '拒绝' + '</th>';
                        }
                        html += '<th>' + item.member_name + '</th>';
                        html += '<th>' + item.create_time + '</th>';
                        html += '</tr>';
                    });
                    $(".user-forbidden-list").append(html);
                    $('#showList-model').modal('open');
                    // $('#showList-model').modal('close');
                }
                
            },
            //调用执行后调用的函数
            complete: function(XMLHttpRequest, textStatus){
               console.warn(XMLHttpRequest.responseText);
               // console.warn(textStatus);
            },
            //调用出错执行的函数
            error: function(){
                //请求出错处理
                console.error('请求失败');
            }
        });

        // $('#showList-model').modal('open');
    }
    

    function outShowList() {
        $('#showList-model').modal('close');
    }
</script>

<!-- 禁用弹窗 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="forbidden-model">
    <div class="am-modal-dialog" style="width: 800px;">
        <div class="am-modal-hd">禁用
        <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd" id="modal-img-list">
            <ul class="tab">
                <li class="tab-item active" time_type="1" date_time="12小时">12小时</li>
                <li class="tab-item" time_type="2" date_time="1天">1天</li>
                <li class="tab-item" time_type="3" date_time="3天">3天</li>
            </ul>
        </div>
        <div class="dioConfirm">
            <button onclick="outDio()">取消</button>
            <button id="dioConBtn" onclick="forbidden()">确定</button>
        </div>
        <input type="hidden" name="forrbidden_uid" id="forrbidden_uid" />
    </div>
</div>
<script type="text/javascript">
    $('#batch').click(function () {
        var obj = document.getElementsByName('ids');
        var check_val = [];
        for (k in obj) {
            if (obj[k].checked)
                check_val.push(obj[k].value);
        }
        var verify_status = $('#batch').val();

        if (check_val.length != 0) {

            let href = "/plaza/updateAudit?audit_status=1" +
                '&plazaIds=' + JSON.stringify(check_val);

            $.get(href,function(data){
                $('.Jump_prompt').html(data.msg);
                $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
                setTimeout(function(){
                    $('#Jump_prompt-1').modal('close');
                    location.reload();
                },1500);
            }, "json");

        }

    });


    function showEdit(obj){
        data = new Object();
        data.plazaId    = $(obj).attr("plazaId");
        data.status     = $(obj).attr("status");
        url = 'showEdit';

        $.ajax({
            type: 'POST',
            url: url,
            data: data,
            dataType: "json",
           
            success:function(data){
                console.log(data);
                if (data.error) {
                    alert(data.msg);
                }else{
                    $('.Jump_prompt').html(data.msg);
                    $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
                    setTimeout(function(){
                        $('#Jump_prompt-1').modal('close');
                        location.reload();
                    },500);
                }
                
            }
        });
    }


    function auditPlaza(obj){
        data = new Object();
        data.audit_status = $(obj).attr("audit_status");
        data.plazaId = $(obj).attr("plazaId");
        url = 'updateAudit';
        
        $.ajax({
            type: 'GET',
            url: url,
            data: data,
            dataType: "json",
           
            success:function(data){
                console.log(data);
                if (data.error) {
                    alert(data.msg);
                }else{
                    $(obj).css({"color":"black","cursor":"not-allowed"});
                    $(obj).attr("disabled", "disabled");
                    $(obj).html('<span>已审核</span');
                    $('.Jump_prompt').html(data.msg);
                    $('#Jump_prompt-1').modal({closeViaDimmer:false,width:100});
                    setTimeout(function(){
                        $('#Jump_prompt-1').modal('close');
                    },500);
                }
                
            }
        });
    }


    $(function () {
        $(".tab .tab-item").click(function () {
            $(this).addClass("active").siblings().removeClass("active");
        })
    })

    function inDio(obj) {
        uid = $(obj).attr("uid");
        $('#forrbidden_uid').val(uid);
        $('#forbidden-model').modal('open');
    }
    
    function forbidden(){
        data = new Object();
        data.uid            = $("#forrbidden_uid").val();
        data.time_type     = $(".active").attr("time_type");
        data.date_time     = $(".active").attr("date_time");

        console.log(data);

        $('#dioConBtn').prop('disabled', true);
        var url = "/forbidden/plaza";
        $.ajax({
            type: 'POST',
            url: url,
            data: data,
            dataType: "json",
            //在请求之前调用的函数
            beforeSend:function(){
                // console.log(1);
            },
            //成功返回之后调用的函数
            success:function(data){
                console.log(data);
                $('#dioConBtn').prop('disabled', false);
                if (data.error) {
                    alert(data.msg);
                }else{
                    alert(data.msg);
                    $('#forbidden-model').modal('close');
                }
                
            },
            //调用执行后调用的函数
            complete: function(XMLHttpRequest, textStatus){
               console.warn(XMLHttpRequest.responseText);
               // console.warn(textStatus);
            },
            //调用出错执行的函数
            error: function(){
                //请求出错处理
                console.error('请求失败');
            }
        });
    }

    function outDio() {
        $('#forbidden-model').modal('close');
    }

</script>





  <!-- content end -->



<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<footer>

  <hr>

  <p class="am-padding-left">© 2019 AllMobilize, Inc. Licensed under MIT license.</p>

</footer>



</div>



<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<!--[if lt IE 9]>

<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>

<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>

<script src="assets/js/amazeui.ie8polyfill.min.js"></script>

<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->

</html>